<?php

class DatabaseSeeder extends Seeder {

	/**
	 * Run the database seeds.
	 *
	 * @return void
	 */
	public function run(){
		Eloquent::unguard();

		$this->call('RolesTableSeeder');

		$this->call('UnitsTableSeeder');

		/*
		 * 这些待填充数据仅用于测试，只在本地开发环境使用
		 */
		if( Config::get('app.debug') && ! App::environment('testing')){
            $this->call('UsersTableTestSeeder');
            $this->call('LessonsTableTestSeeder');
            $this->call('LessonDiscussionsTableTestSeeder');
            $this->call('LessonDiscussionRepliesTableTestSeeder');
            $this->call('LessonStudentStatusTableTestSeeder');
            $this->call('LessonStudentsTableTestSeeder');
            $this->call('LessonResourcesTableTestSeeder');
			$this->call('MessagesTableTestSeeder');
			$this->call('MessagesInboxsTableTestSeeder');
			$this->call('CallnameListsTableTestSeeder');
			$this->call('CallnameStudentsTableTestSeeder');
        }
	}

}
